package com.zcup.designer.behavior.chain;

public class Client {
    public static void main(String[] args) {
        Handler handler1 = new ConcreteHandler1();
        Handler handler2 = new ConcreteHandler2();
        handler1.setSuccessor(handler2);
        int[] request = {1, 20, 100};
        for (int i : request) {
            handler1.handleRequest(i);
        }
    }
}
